class Student {
    constructor(age, name, gender) {
        this.age = age;
        this.name = name;
        this.gender = gender;
    }

    study() {
        console.log(this.name, this.age, this.gender, "has studied!");
    }
}

const s1 = new Student(12, "Jim", "Male");
const s2 = new Student(18, "Mary", "Female");
s1.study();
s2.study();